package com.xx.permission.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xx.permission.entity.result.UserDTO;
import com.xx.permission.service.TOrderService;
import com.xx.permission.utils.UserUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author aqi
 * @since 2023-06-08
 */
@RestController
@RequestMapping("/order")
public class TOrderController {

    @Resource
    private TOrderService tOrderService;

    @GetMapping("/list")
    public void test() {
        UserDTO userDTO = new UserDTO();
        userDTO.setRoleId(2L);
        UserUtils.setCurrentUser(userDTO);
        tOrderService.page(new Page<>(1, 10));
    }

}
